<?php
if(!defined('PATH')) exit();
$status = 'empty';
if ($query['owner'] != 0) {
	if ($query['guild'] == 1) {
		$guild = $this->ots->createObject('Guild');
		$guild->load($query['owner']);
		$status = 'rented by <a href="'.PATH.'/guilds/show/'.$guild->getId().'/">'.$guild->getName().'</a>';
	} else if ($query['guild'] == 0) {
		$player = $this->ots->createObject('Player');
		$player->load($query['owner']);
		$status = 'rented by <a href="'.PATH.'/search/check/'.urlencode($player->getName()).'/">'.$player->getName().'</a>';
	}
}
?>
<table border="0" cellpadding="8" cellspacing="1" width="100%">
<tr class="head"><td colspan="2">Information about <b><?=$query['name']?></b></td></tr>
<tr><td>Town</td><td><?=$this->config['server']['towns'][$query['town']]?></td></tr>
<tr><td>Size</td><td><?=$query['size']?> sqm</td></tr>
<tr><td>Price</td><td><?=$query['price']?> gold</td></tr>
<tr><td>Rent</td><td><?=$query['rent']?> gold</td></tr>
<tr><td>Status</td><td><?=$status?></td></tr>
</table>